Jonathan Turner 8 лет назад
Родитель
Сommit
955fdf74f2
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      client/client_integration_test.go

+ 5 - 1
client/client_integration_test.go

@@ -755,5 +755,9 @@ func TestClient_Destroy(t *testing.T) {
 	m := runtime.NumGoroutine()
 	m := runtime.NumGoroutine()
 	t.Logf("DESTROY: %d %d", n, m)
 	t.Logf("DESTROY: %d %d", n, m)
 	assert.True(t, m < n, "auto-renewal goroutine was not stopped when client destroyed")
 	assert.True(t, m < n, "auto-renewal goroutine was not stopped when client destroyed")
-	assert.False(t, cl.IsConfigured(), "client is still configured after it was destroyed")
+	is, err := cl.IsConfigured()
+	if err != nil {
+		t.Errorf("error checking if destroyed client is configured: %v", err)
+	}
+	assert.False(t, is, "client is still configured after it was destroyed")
 }
 }