You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I switched over to the mysql adaptor for one of the tests and I started getting the following error:
thread 'main' panicked at 'range end index 8 out of range for slice of length 4', /Users/sam/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.4.3/src/lib.rs:2199:28
I tracked it down to the profit_margin in the bakery model which was using f64. Changing it to f32 fixed the panic.
Here is an extract of tests/common/bakery_chain/bakery.rs on the origin/ss/mysql_try branch:
I switched over to the mysql adaptor for one of the tests and I started getting the following error:
thread 'main' panicked at 'range end index 8 out of range for slice of length 4', /Users/sam/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.4.3/src/lib.rs:2199:28
I tracked it down to the
profit_margin
in the bakery model which was usingf64
. Changing it tof32
fixed the panic.Here is an extract of
tests/common/bakery_chain/bakery.rs
on theorigin/ss/mysql_try
branch:The text was updated successfully, but these errors were encountered: