// Ensure that the status request returns OK.
Ensure that the status request returns OK.
// Ensure that the status request returns OK .
func TestStatus(t *testing.T) {
	tempdir, err := ioutil.TempDir("", "worker-tests-")
	require.NoError(t, err)
	defer os.RemoveAll(tempdir)
	server := newTestServer(t, tempdir)
	handler := server.Handler()
	test.TestRoute(t, handler, false, "GET", "/api/worker/v1/status", ``, http.StatusOK, `{"status":"OK"}`, "message")
}
func TestStatus ( t * testing . T ) { tempdir , err := ioutil . TempDir ( " " , " " ) require . NoError ( t , err ) defer os . RemoveAll ( tempdir ) server := newTestServer ( t , tempdir ) handler := server . Handler ( ) test . TestRoute ( t , handler , false , " " , " " , `` , http . StatusOK , `{"status":"OK"}` , " " ) }
Ensure that the status request returns OK.
Ensure that the status request returns OK .