Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
userpj committed Jan 2, 2025
1 parent 57e070e commit d843ac3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
18 changes: 0 additions & 18 deletions go/appbuilder/dataset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,31 +91,13 @@ func TestDataset(t *testing.T) {
datasetID = os.Getenv(SecretKeyV3)
}

_, err = dataset.BatchUploadLocaleFile("datasetID", []string{"./files/test.pdf", "./files/test2.pdf"})
if err != nil {
}
//log("Documents uploaded with ID: %s", documentIDs)

documentID, err := dataset.UploadLocalFile(datasetID, "./files/test.pdf")
if err != nil {
t.Logf("%s========== FAIL: %s ==========%s", "\033[31m", t.Name(), "\033[0m")
t.Fatalf("upload file failed: %v", err)
}
log("Document uploaded with ID: %s", documentID)

_, err = dataset.ListDocument(datasetID, 1, 10, "")
if err != nil {
t.Logf("%s========== FAIL: %s ==========%s", "\033[31m", t.Name(), "\033[0m")
t.Fatalf("list document failed: %v", err)
}
log("Listed documents for dataset ID: %s", datasetID)

if err := dataset.DeleteDocument(datasetID, documentID); err != nil {
t.Logf("%s========== FAIL: %s ==========%s", "\033[31m", t.Name(), "\033[0m")
t.Fatalf("delete document failed: %v", err)
}
log("Document deleted with ID: %s", documentID)

// 如果测试失败,则输出缓冲区中的日志
if t.Failed() {
t.Logf("%s========== FAIL: %s ==========%s", "\033[31m", t.Name(), "\033[0m")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ async def agent_handle():
await run.until_done()

print(event_handler.follow_up_queries)
assert len(event_handler.follow_up_queries) > 0
await client.http_client.session.close()

loop = asyncio.get_event_loop()
Expand Down

0 comments on commit d843ac3

Please sign in to comment.