diff --git a/castai/resource_eviction_config_test.go b/castai/resource_eviction_config_test.go index b13da538..6187a69d 100644 --- a/castai/resource_eviction_config_test.go +++ b/castai/resource_eviction_config_test.go @@ -348,7 +348,8 @@ func TestEvictionConfig_UpdateContext(t *testing.T) { Body: io.NopCloser(bytes.NewReader([]byte(evictionConfigJson))), }, nil }).Times(1) - data.Set(FieldEvictorAdvancedConfig, flattenEvictionConfig(finalConfiuration)) + err := data.Set(FieldEvictorAdvancedConfig, flattenEvictionConfig(finalConfiuration)) + r.NoError(err) updateResult := resource.UpdateContext(ctx, data, provider) r.Nil(updateResult)