We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c05ba46 commit 7b3c71fCopy full SHA for 7b3c71f
1 file changed
internal/robot/adapter_test.go
@@ -18,15 +18,16 @@ func TestNewClientNil(t *testing.T) {
18
19
func TestAdapterServerGetListForceRefresh(t *testing.T) {
20
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
21
- require.Equal(t, "/robot/server", r.URL.Path)
22
- require.NoError(t, json.NewEncoder(w).Encode([]hrobotmodels.ServerResponse{
+ assert.Equal(t, "/robot/server", r.URL.Path)
+ err := json.NewEncoder(w).Encode([]hrobotmodels.ServerResponse{
23
{
24
Server: hrobotmodels.Server{
25
ServerNumber: 321,
26
Name: "robot-server1",
27
},
28
29
- }))
+ })
30
+ assert.NoError(t, err)
31
}))
32
defer server.Close()
33
0 commit comments