finishes IsActive tests

This commit is contained in:
Tai Groot 2021-05-16 22:36:11 -07:00
parent 27c2ad77c8
commit 60ac9b7400
Signed by: taigrr
GPG Key ID: D00C269A87614812

View File

@ -178,6 +178,15 @@ func TestIsActive(t *testing.T) {
} }
Unmask(ctx, unit, Options{UserMode: false}) Unmask(ctx, unit, Options{UserMode: false})
}) })
t.Run(fmt.Sprintf("check masked"), func(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
defer cancel()
_, err := IsActive(ctx, "nonexistant", Options{UserMode: false})
if err != nil {
t.Errorf("error is %v, but should have been %v", err, ErrDoesNotExist)
}
})
} }
// Runs through all defined Properties in parallel and checks for error cases // Runs through all defined Properties in parallel and checks for error cases