This repository has been archived on 2026-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
ollie-core/tools/executor_test.go

21 lines
349 B
Go

package tools
import (
"testing"
)
func TestExecutorAddServer(t *testing.T) {
executor := NewExecutor()
if len(executor.servers) != 0 {
t.Errorf("Expected 0 servers, got %d", len(executor.servers))
}
executor.AddServer("test", nil)
if len(executor.servers) != 1 {
t.Errorf("Expected 1 server, got %d", len(executor.servers))
}
}