Skip to content

Commit

Permalink
run test and fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Ji-Xinyou <jerryji0414@outlook.com>
  • Loading branch information
xyjixyjixyji committed May 11, 2023
1 parent 0c1f8fa commit 9b9ddd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/bindings_c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,7 @@ jobs:
- name: Build BDD tests
working-directory: "bindings/c"
run: make test
- name: Run BDD tests
working-directory: "bindings/c"
run: ./tests/bdd

2 changes: 1 addition & 1 deletion bindings/c/tests/bdd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class OpendalBddTest : public ::testing::Test {
EXPECT_TRUE(this->p);

const opendal_bytes data = {
.len = this->content.length(),
.data = (uint8_t*)this->content.c_str(),
.len = this->content.length(),
};

opendal_code code = opendal_operator_blocking_write(this->p, this->path.c_str(), data);
Expand Down

0 comments on commit 9b9ddd4

Please sign in to comment.