Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSuite_Cleanup (0.45 sec)

  1. pkg/test/framework/suite_test.go

    		setupCalled = true
    		return fmt.Errorf("can't run this")
    	})
    	s.Run()
    
    	g.Expect(setupCalled).To(BeTrue())
    	g.Expect(runCalled).To(BeFalse())
    }
    
    func TestSuite_Cleanup(t *testing.T) {
    	t.Run("cleanup", func(t *testing.T) {
    		defer cleanupRT()
    		g := NewWithT(t)
    
    		var cleanupCalled bool
    		var conditionalCleanupCalled bool
    		var waitForRun1 sync.WaitGroup
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top