Skip to content

Commit

Permalink
pbs seems to ignore disk/mem requests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstruck authored and buchanae committed May 24, 2018
1 parent 8c20f9b commit 2336045
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions tests/pbs/pbs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,14 @@ func TestResourceRequest(t *testing.T) {
}
}

func TestSubmitFail(t *testing.T) {
id := fun.Run(`
--sh 'echo hello world' --ram 1000
`)
task := fun.Wait(id)

if task.State != tes.State_SYSTEM_ERROR {
t.Fatal("expected task to have system error state; got:", task.State.String())
}
}
// PBS/Torque seems to run the job regardless of memory or disk space requested
// func TestSubmitFail(t *testing.T) {
// id := fun.Run(`
// --sh 'echo hello world' --ram 1000
// `)
// task := fun.Wait(id)

// if task.State != tes.State_SYSTEM_ERROR {
// t.Fatal("expected task to have system error state; got:", task.State.String())
// }
// }

0 comments on commit 2336045

Please sign in to comment.