summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/go/command_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sdk/go/command_test.go')
-rw-r--r--packages/sdk/go/command_test.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/sdk/go/command_test.go b/packages/sdk/go/command_test.go
index 5fd8c37be..781498b27 100644
--- a/packages/sdk/go/command_test.go
+++ b/packages/sdk/go/command_test.go
@@ -13,8 +13,8 @@ import (
"github.com/sst/opencode-sdk-go/option"
)
-func TestCommandList(t *testing.T) {
- t.Skip("skipped: tests are disabled for the time being")
+func TestCommandListWithOptionalParams(t *testing.T) {
+ t.Skip("Prism tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
@@ -25,7 +25,9 @@ func TestCommandList(t *testing.T) {
client := opencode.NewClient(
option.WithBaseURL(baseURL),
)
- _, err := client.Command.List(context.TODO())
+ _, err := client.Command.List(context.TODO(), opencode.CommandListParams{
+ Directory: opencode.F("directory"),
+ })
if err != nil {
var apierr *opencode.Error
if errors.As(err, &apierr) {