mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-09-04 13:36:35 +02:00
pkg: address managed DNS mode review feedback
This commit is contained in:
@@ -15,6 +15,11 @@ func TestServiceArgumentPresent(t *testing.T) {
|
||||
if serviceArgumentPresent(out, "off") {
|
||||
t.Fatal("substring in an unrelated path was mistaken for the off argument")
|
||||
}
|
||||
|
||||
splitOut := []byte("Array {\n /usr/local/bin/ctrld\n run\n --intercept-mode\n dns\n}\n")
|
||||
if !serviceArgumentPresent(splitOut, "--intercept-mode") {
|
||||
t.Fatal("standalone flag argument was not found")
|
||||
}
|
||||
}
|
||||
|
||||
func TestServiceFlagPosition(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user