@@ -22,7 +22,7 @@ func TestGetStaleFlags(t *testing.T) {
22
22
{Name : "flag1" , Type : "release" , CreatedAt : time .Now ().Add (- 41 * 24 * time .Hour ), Enabled : true , Stale : false },
23
23
{Name : "flag2" , Type : "experiment" , CreatedAt : time .Now ().Add (- 30 * 24 * time .Hour ), Enabled : true , Stale : false },
24
24
{Name : "flag3" , Type : "operational" , CreatedAt : time .Now ().Add (- 8 * 24 * time .Hour ), Enabled : true , Stale : true },
25
- {Name : "flag4" , Type : "killSwitch " , CreatedAt : time .Now ().Add (- 366 * 24 * time .Hour ), Enabled : true , Stale : false },
25
+ {Name : "flag4" , Type : "kill-switch " , CreatedAt : time .Now ().Add (- 366 * 24 * time .Hour ), Enabled : true , Stale : false },
26
26
},
27
27
}
28
28
if err := json .NewEncoder (w ).Encode (response ); err != nil {
@@ -74,7 +74,7 @@ func TestGetExpectedLifetime(t *testing.T) {
74
74
{"release" , "release" , 40 * 24 * time .Hour },
75
75
{"experiment" , "experiment" , 40 * 24 * time .Hour },
76
76
{"operational" , "operational" , 7 * 24 * time .Hour },
77
- {"killSwitch" , "killSwitch " , time .Duration (math .MaxInt64 )},
77
+ {"killSwitch" , "kill-switch " , time .Duration (math .MaxInt64 )},
78
78
{"permission" , "permission" , time .Duration (math .MaxInt64 )},
79
79
{"default" , "unknown" , 30 * 24 * time .Hour },
80
80
}
0 commit comments