- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 255 for Sleep (0.02 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/ConnectionPoolTest.kt
// Racy causing flaky tests // assertThat(taskRunner.activeQueues()).isNotEmpty() assertThat(taskRunnerThreads).isNotEmpty() Thread.sleep(100) for (t in taskRunnerThreads) { t.interrupt() } Thread.sleep(100) assertThat(taskRunner.activeQueues()).isEmpty() } @Test fun connectionPreWarmingHttp1() { taskFaker.advanceUntil(System.nanoTime())
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 12.9K bytes - Viewed (0) -
cmd/site-replication-utils.go
if err := sm.load(ctx, newObjectLayerFn()); err == nil { <-ctx.Done() return } duration := max(time.Duration(r.Float64()*float64(time.Second*10)), // Make sure to sleep at least a second to avoid high CPU ticks. time.Second) time.Sleep(duration) } } // load resync metrics saved on disk into memory func (sm *siteResyncMetrics) load(ctx context.Context, objAPI ObjectLayer) error { if objAPI == nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 8.8K bytes - Viewed (0) -
fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java
while (crawler.crawlerContext.getStatus() != CrawlerStatus.RUNNING && System.currentTimeMillis() - startTime < 5000) { try { Thread.sleep(50); } catch (InterruptedException e) { Thread.currentThread().interrupt(); break; } }
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 12.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb/SmbClientTest.java
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ThreadUtilTest.java
/** * @author shinsuke * */ public class ThreadUtilTest { /** * @throws Exception */ @Test public void test_sleep() throws Exception { ThreadUtil.sleep(1L); assertTrue(true); ThreadUtil.sleepQuietly(1L); } /** * @throws Exception */ @Test public void test_sleepQuietly() throws Exception {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.1K bytes - Viewed (0) -
cmd/namespace-lock_test.go
} // lk2 lk2ch := make(chan struct{}) go func() { defer close(lk2ch) nsLk.lock(ctx, "volume", "path", "source", "opsID", false, 1*time.Millisecond) }() time.Sleep(1 * time.Millisecond) // wait for goroutine to advance; ref=2 // Unlock the 1st lock; ref=1 after this line nsLk.unlock("volume", "path", false)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
synchronized (lock) { watchCount++; try { // Simulate some processing time Thread.sleep(10); } catch (InterruptedException e) { Thread.currentThread().interrupt(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
cmd/batch-handlers.go
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 63.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
override fun writeTo(sink: BufferedSink) { try { var i = 0 while (i < contentLength()) { sink.write(chunk!!) sink.flush() Thread.sleep(100) i += chunk.size } } catch (e: IOException) { ioe = e } catch (e: InterruptedException) { throw RuntimeException(e) } } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 60.4K bytes - Viewed (0) -
tests/update_has_one_test.go
t.Fatalf("errors happened when update: %v", err) } var user3 User DB.Preload("Account").Find(&user3, "id = ?", user.ID) CheckUser(t, user2, user3) lastUpdatedAt := user2.Account.UpdatedAt time.Sleep(time.Second) if err := DB.Session(&gorm.Session{FullSaveAssociations: true}).Save(&user).Error; err != nil { t.Fatalf("errors happened when update: %v", err) } var user4 User
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Jul 14 06:55:54 UTC 2022 - 3.6K bytes - Viewed (0)