From c6d0802a40b45c1379efd72927cb474eea723541 Mon Sep 17 00:00:00 2001 From: Fabio Graetz Date: Sun, 7 Apr 2024 20:02:35 +0000 Subject: [PATCH] Make propeller tests pass Signed-off-by: Fabio Graetz --- .../pkg/controller/nodes/task/k8s/plugin_manager_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flytepropeller/pkg/controller/nodes/task/k8s/plugin_manager_test.go b/flytepropeller/pkg/controller/nodes/task/k8s/plugin_manager_test.go index 2c7fda0f6e..1caabf6e33 100644 --- a/flytepropeller/pkg/controller/nodes/task/k8s/plugin_manager_test.go +++ b/flytepropeller/pkg/controller/nodes/task/k8s/plugin_manager_test.go @@ -6,6 +6,7 @@ import ( "fmt" "reflect" "testing" + "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" @@ -762,13 +763,15 @@ func TestPluginManager_Handle_PluginState(t *testing.T) { }, } - phaseInfoQueued := pluginsCore.PhaseInfoQueuedWithTaskInfo(pluginStateQueued.K8sPluginState.PhaseVersion, pluginStateQueued.K8sPluginState.Reason, nil) + phaseInfoQueued := pluginsCore.PhaseInfoQueuedWithTaskInfo(time.Now(), pluginStateQueued.K8sPluginState.PhaseVersion, pluginStateQueued.K8sPluginState.Reason, nil) phaseInfoQueuedVersion1 := pluginsCore.PhaseInfoQueuedWithTaskInfo( + time.Now(), pluginStateQueuedVersion1.K8sPluginState.PhaseVersion, pluginStateQueuedVersion1.K8sPluginState.Reason, nil, ) phaseInfoQueuedReasonBar := pluginsCore.PhaseInfoQueuedWithTaskInfo( + time.Now(), pluginStateQueuedReasonBar.K8sPluginState.PhaseVersion, pluginStateQueuedReasonBar.K8sPluginState.Reason, nil,