fix with global config state (#37293) (#37954)

(cherry picked from commit 697ac937c6)

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)andWill Browne authored and GitHub committed 2021-08-17 12:42:17 +02:00
1 parent d6a13c45d2
commit 5619aa7a5b
3 files changed
+9 -2

No files matched your search

+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)