Skip to content

Commit

Permalink
ci: Add circuit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Lindamood authored and cep21 committed Jan 19, 2024
1 parent d1ced6f commit c2837d1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ func TestManager_Var(t *testing.T) {
}
}

func TestManager_AllCircuits(t *testing.T) {
h := Manager{}
c := h.MustCreateCircuit("hello-world", Config{})
if len(h.AllCircuits()) != 1 {
t.Error("unexpected number of circuits")
}
if h.AllCircuits()[0] != c {
t.Error("unexpected circuit")
}
}

func TestSimpleCreate(t *testing.T) {
h := Manager{}
c := h.MustCreateCircuit("hello-world", Config{})
Expand Down

0 comments on commit c2837d1

Please sign in to comment.