Fixing license (#3878)
* Fixing sanitize license * Fixing license * Fixing unit tests
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
c3ae3f20f5
Коммит
839f1ad444
@@ -50,18 +50,18 @@ func TestValidateLicense(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestClientLicenseEtag(t *testing.T) {
|
||||
etag1 := GetClientLicenseEtag()
|
||||
etag1 := GetClientLicenseEtag(false)
|
||||
|
||||
ClientLicense["SomeFeature"] = "true"
|
||||
|
||||
etag2 := GetClientLicenseEtag()
|
||||
etag2 := GetClientLicenseEtag(false)
|
||||
if etag1 == etag2 {
|
||||
t.Fatal("etags should not match")
|
||||
}
|
||||
|
||||
ClientLicense["SomeFeature"] = "false"
|
||||
|
||||
etag3 := GetClientLicenseEtag()
|
||||
etag3 := GetClientLicenseEtag(false)
|
||||
if etag2 == etag3 {
|
||||
t.Fatal("etags should not match")
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user