fix with global config state (#37293)

This commit is contained in:
Will Browne
2021-08-17 12:16:34 +02:00
committed by GitHub
parent 8a2f63ee06
commit 697ac937c6
3 changed files with 9 additions and 2 deletions
+6
View File
@@ -296,6 +296,12 @@ func TestDataSource_GetHttpTransport(t *testing.T) {
})
clearDSProxyCache(t)
origSigV4Enabled := setting.SigV4AuthEnabled
setting.SigV4AuthEnabled = true
t.Cleanup(func() {
setting.SigV4AuthEnabled = origSigV4Enabled
})
json, err := simplejson.NewJson([]byte(`{ "sigV4Auth": true }`))
require.NoError(t, err)