- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,180 for Close (0.05 sec)
-
okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt
server.listener.assertExhausted() server.source.close() client.source.close() taskFaker.runTasks() server.webSocket!!.tearDown() client.webSocket!!.tearDown() taskFaker.close() } @Test fun close() { client.webSocket!!.close(1000, "Hello!") // This will trigger a close response. assertThat(server.processNextFrame()).isFalse()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Thu Apr 11 01:59:58 UTC 2024 - 18.5K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/LockOnDemandCrossProcessCacheAccessTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 21.8K bytes - Viewed (0) -
src/net/sendfile_test.go
} } func TestSendfile(t *testing.T) { ln := newLocalListener(t, "tcp") defer ln.Close() errc := make(chan error, 1) go func(ln Listener) { // Wait for a connection. conn, err := ln.Accept() if err != nil { errc <- err close(errc) return } go func() { defer close(errc) defer conn.Close() f, err := os.Open(newton) if err != nil { errc <- err return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 12.1K bytes - Viewed (0) -
src/net/unixsock_test.go
f.Close() checkExists(t, "after File close") l1.Close() checkExists(t, "after FileListener close") l.Close() checkNotExists(t, "after Listener close") }) // Only first call to l.Close should remove. t.Run("SecondClose", func(t *testing.T) { l := listen(t) checkExists(t, "after Listen") l.Close() checkNotExists(t, "after Listener close")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 10.6K bytes - Viewed (0) -
src/net/net_test.go
go func() { defer close(serverDone) cs, err := ln.Accept() if err != nil { return } <-dialed cs.(*TCPConn).SetLinger(0) cs.Close() }() defer func() { ln.Close() <-serverDone }() ss, err := Dial("tcp", ln.Addr().String()) close(dialed) if err != nil { t.Fatal(err) } defer ss.Close() _, err = ss.Read([]byte{0})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 21:04:44 UTC 2024 - 13.3K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultExclusiveCacheAccessCoordinatorTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 24K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/AbstractFileLockManagerTest.groovy
thrown(IllegalStateException) } def "can close a lock multiple times"() { given: def lock = createLock(Exclusive) lock.close() expect: lock.close() } def "cannot read from file after lock has been closed"() { given: def lock = createLock(Exclusive) lock.close() when: lock.readFile({} as Supplier)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 13.6K bytes - Viewed (0) -
pilot/pkg/leaderelection/leaderelection_test.go
_, stop4 := createElection(t, "pod4", "green", watcher, false, client) close(stop2) close(stop3) close(stop4) // Now that revision "green" has stopped acting as leader, revision "red" should be able to claim lock. _, stop5 := createElection(t, "pod2", "red", watcher, true, client) close(stop5) close(stop) // Revision "green" can reclaim once "red" releases.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 28 04:22:19 UTC 2024 - 11.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt
synchronized(this) { queueSize -= message.data.size.toLong() } } else if (messageOrClose is Close) { val close = messageOrClose as Close writer!!.writeClose(close.code, close.reason) // We closed the writer: now both reader and writer are closed. if (streamsToClose != null) {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 22.1K bytes - Viewed (1) -
src/net/tcpsock_test.go
if err == nil { <-ctx.Done() c.Close() } }() } c, err := ln.Accept() if err == nil { c.Close() } else { t.Error(err) } time.Sleep(10 * time.Millisecond) cancel() wg.Wait() ln.Close() c, err = ln.Accept() if !errors.Is(err, ErrClosed) { if err == nil { c.Close() } t.Errorf("after l.Close(), l.Accept() = _, %v\nwant %v", err, ErrClosed)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 17.7K bytes - Viewed (0)