Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsIdleForTesting (0.13 sec)

  1. src/net/http/transport_test.go

    	tr.CloseIdleConnections()
    	if !tr.IsIdleForTesting() {
    		t.Error("should be idle after CloseIdleConnections")
    	}
    	wantIdle("after close idle", 0)
    	if tr.PutIdleTestConn("http", "example.com") {
    		t.Fatal("put didn't fail")
    	}
    	wantIdle("after second put", 0)
    
    	tr.QueueForIdleConnForTesting() // should toggle the transport out of idle mode
    	if tr.IsIdleForTesting() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top