add test for watch poll interval
@@ -59,6 +59,13 @@ func TestNewTrigger(t *testing.T) {
Interval: time.Duration(0) * time.Millisecond,
},
},
+ {
+ description: "api trigger with interval",
+ opts: &config.SkaffoldOptions{Trigger: "api", WatchPollInterval: 1},
+ expected: &apiTrigger{
+ Interval: time.Duration(1) * time.Second,
+ },
+ },
{
description: "unknown trigger",
opts: &config.SkaffoldOptions{Trigger: "unknown"},
