You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
c.logger.Warning(fmt.Sprintf("%s: the SDK is not ready, results may be incorrect for feature flags %s. Make sure to wait for SDK readiness before using this method", operation, featureFlagsToPrint))
if!mW.Matches("you passed @set4, Flag Set must adhere to the regular expressions ^[a-z0-9][_a-z0-9]{0,49}$. This means a Flag Set must start with a letter or number, be in lowercase, alphanumeric and have a max length of 50 characters. @set4 was discarded.") {
33
-
t.Error("Wrong message")
34
-
}
25
+
assert.Len(t, flagSets, 1)
26
+
logger.On("Warning", []interface{}{"you passed @set4, Flag Set must adhere to the regular expressions ^[a-z0-9][_a-z0-9]{0,49}$. This means a Flag Set must start with a letter or number, be in lowercase, alphanumeric and have a max length of 50 characters. @set4 was discarded."}).Return().Once()
logger.On("Warning", []interface{}{"Factory Instantiation: You already have 1 factory with this SDK Key. We recommend keeping only one instance of the factory at all times (Singleton pattern) and reusing it throughout your application."}).Return().Once()
expected:="Factory Instantiation: You already have 1 factory with this SDK Key. We recommend keeping only one "+
40
-
"instance of the factory at all times (Singleton pattern) and reusing it throughout your application."
41
-
if!mockWriter.Matches(expected) {
42
-
t.Error("Error is distinct from the expected one")
43
-
}
44
-
34
+
logger.On("Warning", []interface{}{"Factory Instantiation: You already have an instance of the Split factory. Make sure you definitely want this additional instance. We recommend keeping only one instance of the factory at all times (Singleton pattern) and reusing it throughout your application."}).Return().Once()
45
35
factory4, _:=NewSplitFactory("asdadd", sdkConf)
46
36
client2:=factory4.Client()
47
-
expected="Factory Instantiation: You already have an instance of the Split factory. Make sure you definitely want "+
48
-
"this additional instance. We recommend keeping only one instance of the factory at all times (Singleton pattern) and "+
49
-
"reusing it throughout your application."
50
-
if!mockWriter.Matches(expected) {
51
-
t.Error("Error is distinct from the expected one")
logger.On("Warning", []interface{}{"Factory Instantiation: You already have 1 factory with this SDK Key. We recommend keeping only one instance of the factory at all times (Singleton pattern) and reusing it throughout your application."}).Return().Once()
logger.On("Warning", []interface{}{"Factory Instantiation: You already have 2 factories with this SDK Key. We recommend keeping only one instance of the factory at all times (Singleton pattern) and reusing it throughout your application."}).Return().Once()
0 commit comments