Revert changes for smaller test size.
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
This commit is contained in:
parent
5df24e93bd
commit
67021958b7
@ -441,11 +441,11 @@ func StorageDriverTestRetrieveAllRecentStats(driver TestStorageDriver, t *testin
|
|||||||
if len(recentStats) == 0 {
|
if len(recentStats) == 0 {
|
||||||
t.Fatal("should at least store one stats")
|
t.Fatal("should at least store one stats")
|
||||||
}
|
}
|
||||||
if len(recentStats) != N {
|
if len(recentStats) > N {
|
||||||
t.Fatalf("returned %v stats, not %d.", len(recentStats), N)
|
t.Fatalf("returned %v stats, not %d.", len(recentStats), N)
|
||||||
}
|
}
|
||||||
|
|
||||||
actualRecentStats := trace //len(trace)-len(recentStats):]
|
actualRecentStats := trace[len(trace)-len(recentStats):]
|
||||||
|
|
||||||
// The returned stats should be sorted in time increasing order
|
// The returned stats should be sorted in time increasing order
|
||||||
for i, s := range actualRecentStats {
|
for i, s := range actualRecentStats {
|
||||||
|
Loading…
Reference in New Issue
Block a user