示例#1
0
func TestWorkingBinaryExecutor(t *testing.T) {

	_, err := jobworker.ExecuteBinary("ls", "-a")

	if err != nil {
		t.Error(err)
	}
}
示例#2
0
func TestFailingBinaryExecutor(t *testing.T) {

	_, err := jobworker.ExecuteBinary("lssdsd", "-a")

	if err == nil {
		t.Error("Expected an error.")
	}
}