We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e174f0 commit 96f6214Copy full SHA for 96f6214
server/http_handler_test.go
@@ -1196,7 +1196,9 @@ func TestSetLabels(t *testing.T) {
1196
testUpdateLabels(updated, labels)
1197
1198
// reset the global variable
1199
- config.GetGlobalConfig().Labels = map[string]string{}
+ config.UpdateGlobal(func(conf *config.Config) {
1200
+ conf.Labels = map[string]string{}
1201
+ })
1202
}
1203
1204
func TestSetLabelsConcurrentWithGetLabel(t *testing.T) {
@@ -1237,5 +1239,7 @@ func TestSetLabelsConcurrentWithGetLabel(t *testing.T) {
1237
1239
close(done)
1238
1240
1241
1242
1243
1244
1245
0 commit comments