We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdad95e commit 73d0699Copy full SHA for 73d0699
1 file changed
oho/internal/config/config_test.go
@@ -79,7 +79,9 @@ func TestGetBaseURL(t *testing.T) {
79
os.Unsetenv("OPENCODE_SERVER_USERNAME")
80
os.Unsetenv("OPENCODE_SERVER_PASSWORD")
81
82
- Init()
+ if err := Init(); err != nil {
83
+ t.Fatalf("Init() returned error: %v", err)
84
+ }
85
86
baseURL := GetBaseURL()
87
expected := "http://127.0.0.1:4096"
@@ -96,7 +98,9 @@ func TestGetBaseURLWithCustomHostPort(t *testing.T) {
96
98
os.Unsetenv("OPENCODE_SERVER_PORT")
97
99
}()
100
101
102
103
104
105
106
expected := "http://10.0.0.1:3000"
0 commit comments