We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef90c34 commit 8ab4743Copy full SHA for 8ab4743
1 file changed
pkg/apiclient/auth_service_test.go
@@ -253,11 +253,11 @@ func TestWatcherEnroll(t *testing.T) {
253
err := json.Unmarshal([]byte(newStr), &parsedBody)
254
require.NoError(t, err)
255
256
- if parsedBody["attachment_key"] == "goodkey" && parsedBody["autoenroll"] == false {
+ if parsedBody["attachment_key"] == "goodkey" && !parsedBody["autoenroll"].(bool) {
257
log.Print("good key")
258
w.WriteHeader(http.StatusOK)
259
fmt.Fprint(w, `{"statusCode": 200, "message": "OK"}`)
260
- } else if parsedBody["attachment_key"] == "" && parsedBody["autoenroll"] == true {
+ } else if parsedBody["attachment_key"] == "" && parsedBody["autoenroll"].(bool) {
261
log.Print("autoenroll")
262
263
fmt.Fprint(w, `{"url": "https://example.com/enroll"}`)
0 commit comments