Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 1,461 for tive (0.04 sec)

  1. cmd/leak-detect_test.go

    	deadline := UTCNow().Add(leakDetectDeadline * time.Second)
    	for {
    		// get sack snapshot of relevant go routines.
    		leaked := initialSnapShot.CompareCurrentSnapshot()
    		// current stack snapshot matches the initial one, no leaks, return.
    		if len(leaked) == 0 {
    			return
    		}
    		// wait a test again will deadline.
    		if UTCNow().Before(deadline) {
    			time.Sleep(leakDetectPauseTimeMs * time.Millisecond)
    			continue
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                // Should complete in reasonable time (< 10ms for 3000 operations)
                assertTrue(totalTime < 10_000_000L, "Null/empty password comparisons taking too long: " + totalTime + " ns");
            } finally {
                auth1.close();
                auth2.close();
                auth3.close();
            }
        }
    
        /**
         * Test that the constant-time comparison method is actually used internally.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. cmd/version_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"testing"
    	"time"
    )
    
    func TestVersion(t *testing.T) {
    	Version = "2017-05-07T06:37:49Z"
    	_, err := time.Parse(time.RFC3339, Version)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 956 bytes
    - Viewed (0)
  4. cmd/local-locker.go

    // Caller must hold 'l.mutex' lock.
    func (l *localLocker) expireOldLocks(interval time.Duration) {
    	defer l.getMutex()()
    
    	var readers, writers int32
    	for k, lris := range l.lockMap {
    		modified := false
    		for i := 0; i < len(lris); {
    			lri := &lris[i]
    			if time.Since(time.Unix(0, lri.TimeLastRefresh)) > interval {
    				delete(l.lockUID, formatUUID(lri.UID, lri.idx))
    				if len(lris) == 1 {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12K bytes
    - Viewed (0)
  5. docs/uk/docs/tutorial/middleware.md

    Наприклад, Ви можете додати власний заголовок `X-Process-Time`, який міститиме час у секундах, який витратився на обробку запиту та генерацію відповіді:
    
    {* ../../docs_src/middleware/tutorial001.py hl[10,12:13] *}
    
    
    /// tip | Підказка
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri May 30 13:35:33 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  6. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

        val deltaMillis = 1000.0
        val durationMillis = TimeUnit.MINUTES.toMillis((60 * 24).toLong())
        assertThat(certificate.notBefore.time.toDouble())
          .isCloseTo(now.toDouble(), deltaMillis)
        assertThat(certificate.notAfter.time.toDouble())
          .isCloseTo(now.toDouble() + durationMillis, deltaMillis)
      }
    
      @Test
      fun customInterval() {
        // 5 seconds starting on 1970-01-01.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java

            this.state = state;
        }
    
        /**
         * Get the time when channel was established
         *
         * @return establishment time in milliseconds
         */
        public long getEstablishedTime() {
            return establishedTime;
        }
    
        /**
         * Get the last activity time
         *
         * @return last activity time in milliseconds
         */
        public long getLastActivityTime() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  8. tests/update_test.go

    	// update with struct
    	time.Sleep(1 * time.Second)
    	DB.Table("users").Where("name in ?", []string{users[1].Name}).Updates(User{Name: "updates_02_newname"})
    
    	var user3 User
    	if err := DB.First(&user3, "name = ?", "updates_02_newname").Error; err != nil {
    		t.Errorf("User2's name should be updated")
    	}
    
    	if user2.UpdatedAt.Format(time.RFC1123Z) == user3.UpdatedAt.Format(time.RFC1123Z) {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  9. cmd/metacache-entries_test.go

    func Test_metaCacheEntries_resolve(t *testing.T) {
    	baseTime, err := time.Parse("2006/01/02", "2015/02/25")
    	if err != nil {
    		t.Fatal(err)
    	}
    	inputs := []xlMetaV2{
    		0: {
    			versions: []xlMetaV2ShallowVersion{
    				{header: xlMetaV2VersionHeader{
    					VersionID: [16]byte{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
    					ModTime:   baseTime.Add(30 * time.Minute).UnixNano(),
    					Signature: [4]byte{1, 1, 1, 1},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                        } catch (InterruptedException e) {
                            // Ignore
                        }
                    }
                });
    
                waiter.start();
                Thread.sleep(50); // Give waiter time to start
    
                response.received();
    
                assertTrue(latch.await(500, TimeUnit.MILLISECONDS));
                assertTrue(response.isReceived());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
Back to top