Update drivers/qemu/driver_test.go

use t.Logf instead of fmt.Printf

Co-Authored-By: nickethier <ncethier@gmail.com>
This commit is contained in:
Michael Schurter 2019-01-12 21:33:55 -05:00 committed by GitHub
parent 597b7b751d
commit ff034ffbc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,7 +362,7 @@ func TestQemuDriver_Stats(t *testing.T) {
select { select {
case stats := <-statsCh: case stats := <-statsCh:
fmt.Printf("CPU:%+v Memory:%+v\n", stats.ResourceUsage.CpuStats, stats.ResourceUsage.MemoryStats) t.Logf("CPU:%+v Memory:%+v\n", stats.ResourceUsage.CpuStats, stats.ResourceUsage.MemoryStats)
require.NotZero(stats.ResourceUsage.MemoryStats.RSS) require.NotZero(stats.ResourceUsage.MemoryStats.RSS)
require.NoError(harness.DestroyTask(task.ID, true)) require.NoError(harness.DestroyTask(task.ID, true))
case <-time.After(time.Second * 1): case <-time.After(time.Second * 1):