Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Rust pipelines cargo test crash

kurdy January 25, 2019

Hi,

I am using the default pipeline suggested by bitbucket for rust which is

image: rust:1.32

pipelines:
default:
- step:
script: # Modify the commands below to build your repository.
- cargo build -v
- cargo test -v

 

during test it failed with:

thread 'tests::test_get_new_string_id' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:355:21

The same commands on my system doesn't failed.

I tried to change image from 1.31 to 1.32. Note I am using 1.32 in my dev system

Have you any advice's ?

Thanks

1 answer

1 accepted

0 votes
Answer accepted
kurdy January 26, 2019

The issue was into initialization. I was using std::sync::Once

It doesn't work fine (for me) with pipeline

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events