Skip to content

Commit

Permalink
TestProbeRouteIsBusy: uses a non-cancellable state
Browse files Browse the repository at this point in the history
Signed-off-by: Luis Gustavo S. Barreto <gustavo@ossystems.com.br>
  • Loading branch information
gustavosbarreto authored and otavio committed Jul 12, 2018
1 parent 254ffc7 commit 1522401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/agent_backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,14 @@ func TestProbeRouteWithDefaultApiClient(t *testing.T) {
func TestProbeRouteIsBusy(t *testing.T) {
out := map[string]interface{}{}
out["busy"] = true
out["current-state"] = "probe"
out["current-state"] = "rebooting"

expectedResponse, _ := json.MarshalIndent(out, "", " ")

uh, ab, _, _ := setup(t)
defer teardown(t)

s := updatehub.NewProbeState(uh.DefaultApiClient)
s := updatehub.NewRebootingState(uh.DefaultApiClient, nil)
uh.SetState(s)

rwm := &responsewritermock.ResponseWriterMock{}
Expand Down

0 comments on commit 1522401

Please sign in to comment.