Skip to content

Commit 25cc19d

Browse files
committed
fix uptime tests
1 parent b6f4f47 commit 25cc19d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

node-registrar/client/utils_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ func serverHandler(r *http.Request, request, count int, require *require.Asserti
189189
}
190190

191191
case updateNodeSendUptimeReport:
192-
require.Equal("/v1/nodes/1", r.URL.Path)
193-
require.Equal(http.MethodPatch, r.Method)
192+
require.Equal("/v1/nodes/1/uptime", r.URL.Path)
193+
require.Equal(http.MethodPost, r.Method)
194194
require.NotEmpty(r.Body)
195-
return http.StatusOK, nil
195+
return http.StatusCreated, nil
196196

197197
case getNodeWithIDStatusOK:
198198
require.Equal("/v1/nodes/1", r.URL.Path)

0 commit comments

Comments
 (0)