fixed the qemu fingerprinter test

This commit is contained in:
Diptanu Choudhury 2016-08-24 12:25:02 -05:00
parent ca7de798a7
commit 10e10b2fe1

View file

@ -15,7 +15,11 @@ import (
// The fingerprinter test should always pass, even if QEMU is not installed.
func TestQemuDriver_Fingerprint(t *testing.T) {
ctestutils.QemuCompatible(t)
driverCtx, _ := testDriverContexts(&structs.Task{Name: "foo"})
task := &structs.Task{
Name: "foo",
Resources: structs.DefaultResources(),
}
driverCtx, _ := testDriverContexts(task)
d := NewQemuDriver(driverCtx)
node := &structs.Node{
Attributes: make(map[string]string),