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

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

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

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

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