diff options
Diffstat (limited to 'internal/app/outcome_test.go')
| -rw-r--r-- | internal/app/outcome_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/internal/app/outcome_test.go b/internal/app/outcome_test.go index 53c8958d..740e7db5 100644 --- a/internal/app/outcome_test.go +++ b/internal/app/outcome_test.go @@ -4,7 +4,6 @@ import ( "testing" "hakurei.app/hst" - "hakurei.app/internal/app/state" ) func TestOutcomeStateValid(t *testing.T) { @@ -19,9 +18,9 @@ func TestOutcomeStateValid(t *testing.T) { {"zero", new(outcomeState), false}, {"shim", &outcomeState{Shim: &shimParams{PrivPID: -1, Ops: []outcomeOp{}}, Container: new(hst.ContainerConfig), EnvPaths: new(EnvPaths)}, false}, {"id", &outcomeState{Shim: &shimParams{PrivPID: 1, Ops: []outcomeOp{}}, Container: new(hst.ContainerConfig), EnvPaths: new(EnvPaths)}, false}, - {"container", &outcomeState{Shim: &shimParams{PrivPID: 1, Ops: []outcomeOp{}}, ID: new(state.ID), EnvPaths: new(EnvPaths)}, false}, - {"envpaths", &outcomeState{Shim: &shimParams{PrivPID: 1, Ops: []outcomeOp{}}, ID: new(state.ID), Container: new(hst.ContainerConfig)}, false}, - {"valid", &outcomeState{Shim: &shimParams{PrivPID: 1, Ops: []outcomeOp{}}, ID: new(state.ID), Container: new(hst.ContainerConfig), EnvPaths: new(EnvPaths)}, true}, + {"container", &outcomeState{Shim: &shimParams{PrivPID: 1, Ops: []outcomeOp{}}, ID: new(hst.ID), EnvPaths: new(EnvPaths)}, false}, + {"envpaths", &outcomeState{Shim: &shimParams{PrivPID: 1, Ops: []outcomeOp{}}, ID: new(hst.ID), Container: new(hst.ContainerConfig)}, false}, + {"valid", &outcomeState{Shim: &shimParams{PrivPID: 1, Ops: []outcomeOp{}}, ID: new(hst.ID), Container: new(hst.ContainerConfig), EnvPaths: new(EnvPaths)}, true}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { |
