From f7e8f78fea81b76d6fac880d1998f72b72fbbaea Mon Sep 17 00:00:00 2001 From: axenteoctavian Date: Fri, 22 Nov 2024 10:18:12 +0200 Subject: [PATCH] fixes after review 2 --- factory/runType/interface.go | 2 +- factory/runType/runTypeComponentsHandler_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/factory/runType/interface.go b/factory/runType/interface.go index d749ae48..37448d92 100644 --- a/factory/runType/interface.go +++ b/factory/runType/interface.go @@ -1,6 +1,6 @@ package runType -// RunTypeComponentsCreator is the interface for the runTypeComponentsCreator +// RunTypeComponentsCreator is the interface for creating run type components type RunTypeComponentsCreator interface { Create() *runTypeComponents IsInterfaceNil() bool diff --git a/factory/runType/runTypeComponentsHandler_test.go b/factory/runType/runTypeComponentsHandler_test.go index ad3b81f2..cfa94cec 100644 --- a/factory/runType/runTypeComponentsHandler_test.go +++ b/factory/runType/runTypeComponentsHandler_test.go @@ -19,7 +19,7 @@ func TestNewManagedRunTypeComponents(t *testing.T) { t.Run("should error", func(t *testing.T) { managedRunTypeComponents, err := NewManagedRunTypeComponents(nil) require.ErrorIs(t, err, errNilRunTypeComponents) - require.True(t, managedRunTypeComponents.IsInterfaceNil()) + require.Nil(t, managedRunTypeComponents) }) t.Run("should work", func(t *testing.T) { rtcf := NewRunTypeComponentsFactory()