Skip to content

Commit 831b4d1

Browse files
committed
remove unnecessary timeout from test
1 parent 2a62521 commit 831b4d1

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

extension/alloyengine/extension_test.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,7 @@ func TestLifecycle_StartTwiceFails(t *testing.T) {
137137
require.NoError(t, e.Start(t.Context(), componenttest.NewNopHost()))
138138
err := e.Start(t.Context(), componenttest.NewNopHost())
139139
require.Error(t, err)
140-
141-
// Cleanup: release the singleton slot so subsequent tests can start extensions
142-
shutdownCtx, cancel := context.WithTimeout(t.Context(), 2*time.Second)
143-
t.Cleanup(cancel)
144-
require.NoError(t, e.Shutdown(shutdownCtx))
140+
require.NoError(t, e.Shutdown(t.Context())) //
145141
}
146142

147143
func TestLifecycle_SecondInstanceFailsWhileFirstRunning(t *testing.T) {

0 commit comments

Comments
 (0)