fixed tests

This commit is contained in:
redanthrax 2022-06-28 15:33:17 -07:00
parent 75e6d3240f
commit 8f27cb1842
2 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ import (
)
func TestRunScript(t *testing.T) {
stdout, stderr, exitcode, err := system.RunScript("#!/bin/sh\nuname -av", "/bin/bash", nil, 30)
_, stderr, exitcode, err := system.RunScript("#!/bin/sh\nuname -av", "/bin/bash", nil, 30)
if err != nil {
t.Fatal(err)
}

View file

@ -1,5 +1,5 @@
//go:build darwin
// +build darwin
//go:build !windows
// +build !windows
package system_test
@ -18,7 +18,7 @@ func TestNewCMDOpts(t *testing.T) {
}
func TestSystemRebootRequired(t *testing.T) {
required, err := system.SystemRebootRequired()
_, err := system.SystemRebootRequired()
if err != nil {
t.Fatal(err)
}