From 9db15bdecd12125025cd59d979dad306e1ae393b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Kj=C3=B6lhede?= Date: Fri, 15 Sep 2023 21:19:44 +0200 Subject: [PATCH] fix tests --- pkg/domain/deployment_service_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkg/domain/deployment_service_test.go b/pkg/domain/deployment_service_test.go index 5c3cbf0..29ff4f2 100644 --- a/pkg/domain/deployment_service_test.go +++ b/pkg/domain/deployment_service_test.go @@ -20,6 +20,11 @@ func TestDeployFromFolder_newApp(t *testing.T) { fmt.Printf("flyClient: %+v\n", flyClient) + flyClient. + EXPECT(). + GetAppScale(mock.Anything, mock.Anything). + Return([]model.ScaleState{}, nil) + flyClient. EXPECT(). ExistsApp(mock.Anything, mock.Anything). @@ -53,6 +58,11 @@ func TestDeployFromFolder_existingApp(t *testing.T) { fmt.Printf("flyClient: %+v\n", flyClient) + flyClient. + EXPECT(). + GetAppScale(mock.Anything, mock.Anything). + Return([]model.ScaleState{}, nil) + flyClient. EXPECT(). ExistsApp(mock.Anything, mock.Anything). @@ -86,6 +96,11 @@ func TestDeployFromFolder_appMergingConfig(t *testing.T) { fmt.Printf("flyClient: %+v\n", flyClient) + flyClient. + EXPECT(). + GetAppScale(mock.Anything, mock.Anything). + Return([]model.ScaleState{}, nil) + flyClient. EXPECT(). ExistsApp(mock.Anything, mock.Anything).