From 1c59b3c245dc3402fe383aacbcc144bc2653912c Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Mon, 21 Sep 2020 19:24:39 -0600 Subject: [PATCH] fix tests. --- webapp/backend/pkg/web/server_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webapp/backend/pkg/web/server_test.go b/webapp/backend/pkg/web/server_test.go index d72d86a..b4821db 100644 --- a/webapp/backend/pkg/web/server_test.go +++ b/webapp/backend/pkg/web/server_test.go @@ -24,8 +24,8 @@ func TestHealthRoute(t *testing.T) { mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() fakeConfig := mock_config.NewMockInterface(mockCtrl) - fakeConfig.EXPECT().GetString("web.database.location").Return(path.Join(parentPath, "scrutiny_test.db")) - fakeConfig.EXPECT().GetString("web.src.frontend.path").Return(parentPath) + fakeConfig.EXPECT().GetString("web.database.location").Return(path.Join(parentPath, "scrutiny_test.db")).AnyTimes() + fakeConfig.EXPECT().GetString("web.src.frontend.path").Return(parentPath).AnyTimes() ae := web.AppEngine{ Config: fakeConfig, @@ -50,8 +50,8 @@ func TestRegisterDevicesRoute(t *testing.T) { mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() fakeConfig := mock_config.NewMockInterface(mockCtrl) - fakeConfig.EXPECT().GetString("web.database.location").Return(path.Join(parentPath, "scrutiny_test.db")) - fakeConfig.EXPECT().GetString("web.src.frontend.path").Return(parentPath) + fakeConfig.EXPECT().GetString("web.database.location").Return(path.Join(parentPath, "scrutiny_test.db")).AnyTimes() + fakeConfig.EXPECT().GetString("web.src.frontend.path").Return(parentPath).AnyTimes() ae := web.AppEngine{ Config: fakeConfig, }