(t *testing.T)
| 2602 | } |
| 2603 | |
| 2604 | func TestUptimeStat(t *testing.T) { |
| 2605 | rt := NewRestTester(t, nil) |
| 2606 | defer rt.Close() |
| 2607 | |
| 2608 | uptime1, err := strconv.Atoi(base.SyncGatewayStats.GlobalStats.ResourceUtilizationStats().Uptime.String()) |
| 2609 | require.NoError(t, err) |
| 2610 | time.Sleep(10 * time.Nanosecond) |
| 2611 | |
| 2612 | uptime2, err := strconv.Atoi(base.SyncGatewayStats.GlobalStats.ResourceUtilizationStats().Uptime.String()) |
| 2613 | require.NoError(t, err) |
| 2614 | log.Printf("uptime1: %d, uptime2: %d", uptime1, uptime2) |
| 2615 | assert.True(t, uptime1 < uptime2) |
| 2616 | } |
| 2617 | |
| 2618 | func TestDocumentChannelHistory(t *testing.T) { |
| 2619 | defer db.SuspendSequenceBatching()() |
nothing calls this directly
no test coverage detected