Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestStats (0.14 sec)

  1. pilot/cmd/pilot-agent/status/server_test.go

    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		t.Errorf("[%v] unexpected status code, want = %v, got = %v", pprofPath, http.StatusOK, resp.StatusCode)
    	}
    }
    
    func TestStats(t *testing.T) {
    	cases := []struct {
    		name             string
    		envoy            string
    		app              string
    		output           string
    		expectParseError bool
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  2. src/database/sql/sql_test.go

    	}
    	// shouldn't deadlock
    	rows, err = db.Query("SELECT|people|name|")
    	if err != nil {
    		t.Fatal(err)
    	}
    	if err = rows.Close(); err != nil {
    		t.Fatal(err)
    	}
    }
    
    func TestStats(t *testing.T) {
    	db := newTestDB(t, "people")
    	stats := db.Stats()
    	if got := stats.OpenConnections; got != 1 {
    		t.Errorf("stats.OpenConnections = %d; want 1", got)
    	}
    
    	tx, err := db.Begin()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
Back to top