carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1//go:build !unix
2
3package hostguard
4
5import (
6 "context"
7 "errors"
8 "testing"
9)
10
11func TestUnsupportedLock(t *testing.T) {
12 if _, err := Capture(t.TempDir(), "shop.example"); !errors.Is(err, ErrUnsupported) {
13 t.Fatal(err)
14 }
15 g := Guard{DataDir: t.TempDir(), LockDir: t.TempDir()}
16 if err := g.Activate(context.Background(), "shop.example", "box", nil); !errors.Is(err, ErrUnsupported) {
17 t.Fatal(err)
18 }
19}
20