fix tests
This commit is contained in:
parent
a5f2db3744
commit
32dd67957d
@ -89,7 +89,7 @@ func TestClientStream(t *testing.T) {
|
|||||||
statusCode: http.StatusBadRequest,
|
statusCode: http.StatusBadRequest,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
wantErr: "test structured error",
|
wantErr: "test structured error\ntest hint",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "error after chunks - basic format",
|
name: "error after chunks - basic format",
|
||||||
@ -117,7 +117,7 @@ func TestClientStream(t *testing.T) {
|
|||||||
statusCode: http.StatusOK,
|
statusCode: http.StatusOK,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
wantErr: "mid-stream structured error",
|
wantErr: "mid-stream structured error\nadditional context",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "successful stream completion",
|
name: "successful stream completion",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user