Skip to content

Commit

Permalink
make sure test native plugin gets built for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
afinch7 committed Nov 22, 2019
1 parent 496329a commit 62c126c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/tests/052_native_plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ const textDecoder = new TextDecoder();
console.log(`Native Binding Sync Response: ${textDecoder.decode(response)}`);
}

// eslint-disable-next-line @typescript-eslint/camelcase
test_io_async.setAsyncHandler(response => {
console.log(`Native Binding Async Response: ${textDecoder.decode(response)}`);
});

// eslint-disable-next-line @typescript-eslint/camelcase
const response = test_io_async.dispatch(
new Uint8Array([116, 101, 115, 116]),
new Uint8Array([116, 101, 115, 116])
Expand Down
5 changes: 5 additions & 0 deletions cli/tests/test_native_plugin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ pub fn op_test_io_async(data: &[u8], zero_copy: Option<PinnedBuf>) -> CoreOp {

Op::Async(fut.boxed())
}

#[test]
fn placeholder() {
// This test is just here to make sure the plugin gets built
}

0 comments on commit 62c126c

Please sign in to comment.