Fixed a java test

This commit is contained in:
Diptanu Choudhury
2016-08-23 16:51:09 -05:00
parent 3f9ca48802
commit e93ff0af02
3 changed files with 13 additions and 8 deletions

View File

@@ -31,7 +31,11 @@ func javaLocated() bool {
// The fingerprinter test should always pass, even if Java is not installed.
func TestJavaDriver_Fingerprint(t *testing.T) {
ctestutils.JavaCompatible(t)
driverCtx, _ := testDriverContexts(&structs.Task{Name: "foo"})
task := &structs.Task{
Name: "foo",
Resources: structs.DefaultResources(),
}
driverCtx, _ := testDriverContexts(task)
d := NewJavaDriver(driverCtx)
node := &structs.Node{
Attributes: map[string]string{