INNER CODE UNIT · Go

testStatus

minio/kes · api_test.go:98

func testStatus(t *testing.T) {
	t.Parallel()

	ctx := testContext(t)
	srv, url := startServer(ctx, nil)
	defer srv.Close()

	client := defaultClient(url)
	stat, err := client.Status(ctx)
	if err != nil {
		t.Fatalf("Failed to fetch status information: %v", err)
	}
	if stat.Arch != runtime.GOARCH {
		t.Fatalf("Invalid status: got '%s' - want '%s'", stat.Arch, runtime.GOARCH)
	}
	if stat.OS != runtime.GOOS {
		t.Fatalf("Invalid status: got '%s' - want '%s'", stat.OS, runtime.GOOS)
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…