PLT-6226 Fixing races with licensing (#7213)
* PLT-6226 Fixing races with licensing * Fixing build issue * Fixing licensing issue * removing commented code
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
32265df8be
Коммит
0ab490845a
@@ -29,7 +29,7 @@ func TestGetLicenceConfig(t *testing.T) {
|
||||
t.Fatal("cache should be empty")
|
||||
}
|
||||
|
||||
utils.ClientLicense["IsLicensed"] = "true"
|
||||
utils.SetClientLicense(map[string]string{"IsLicensed": "true"})
|
||||
|
||||
if cache_result, err := Client.GetClientLicenceConfig(result.Etag); err != nil {
|
||||
t.Fatal(err)
|
||||
@@ -37,7 +37,7 @@ func TestGetLicenceConfig(t *testing.T) {
|
||||
t.Fatal("result should not be empty")
|
||||
}
|
||||
|
||||
utils.ClientLicense["SomeFeature"] = "true"
|
||||
utils.SetClientLicense(map[string]string{"SomeFeature": "true", "IsLicensed": "true"})
|
||||
|
||||
if cache_result, err := Client.GetClientLicenceConfig(result.Etag); err != nil {
|
||||
t.Fatal(err)
|
||||
@@ -45,6 +45,6 @@ func TestGetLicenceConfig(t *testing.T) {
|
||||
t.Fatal("result should not be empty")
|
||||
}
|
||||
|
||||
utils.ClientLicense = map[string]string{"IsLicensed": "false"}
|
||||
utils.SetClientLicense(map[string]string{"IsLicensed": "false"})
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user