Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDryRunAllocateNext (0.15 sec)

  1. pkg/registry/core/service/portallocator/operation_test.go

    	freeAtEnd := r.Free()
    	if freeAtStart != freeAtEnd {
    		t.Errorf("expected %v free ports but got %v", freeAtStart, freeAtEnd)
    	}
    }
    
    // TestDryRunAllocateNext tests the AllocateNext function in dry run mode
    func TestDryRunAllocateNext(t *testing.T) {
    	pr, err := net.ParsePortRange("10000-10200")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Allocate some ports before calling
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Aug 15 23:44:12 UTC 2021
    - 3.1K bytes
    - Viewed (0)
Back to top