Skip to content

Commit

Permalink
Merge pull request zeromq#74 from TheButlah/ci-check-tests
Browse files Browse the repository at this point in the history
Ci check and lint tests as well as workspaces
  • Loading branch information
Alexei-Kornienko authored Oct 4, 2020
2 parents 9121daf + a187c90 commit feb5c72
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: check
args: --all --tests

test:
name: Test
Expand All @@ -39,6 +40,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
args: --all

fmt:
name: Formatting
Expand Down Expand Up @@ -76,4 +78,4 @@ jobs:
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- --deny warnings
args: --all --tests --all-features -- --deny warnings
4 changes: 2 additions & 2 deletions src/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ impl ZmqCodec {
}

impl Decoder for ZmqCodec {
type Item = Message;
type Error = ZmqError;
type Item = Message;

fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Self::Item>, Self::Error> {
if src.len() < self.waiting_for {
Expand Down Expand Up @@ -325,8 +325,8 @@ impl ZmqCodec {
}

impl Encoder for ZmqCodec {
type Item = Message;
type Error = ZmqError;
type Item = Message;

fn encode(&mut self, message: Self::Item, dst: &mut BytesMut) -> Result<(), Self::Error> {
match message {
Expand Down
1 change: 1 addition & 0 deletions tests/pub_sub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ async fn test_pub_sub_sockets() {

server_stop_sender.send(()).unwrap();
}

let addrs = vec![
"tcp://localhost:5553",
"tcp://127.0.0.1:5554",
Expand Down

0 comments on commit feb5c72

Please sign in to comment.