Skip to content

Commit

Permalink
[tests] Adapt one test broken by cherry-pick #23398
Browse files Browse the repository at this point in the history
Cherry-picking #23398 based on a very old green CI run introduced a
build issue, in that one more test case had been introduced into the
branch, which required a slight adaptation.

Signed-off-by: Jes B. Klinke <[email protected]>
Change-Id: Ibd79a35ee1685637a29e80592d50a59091a528ee
  • Loading branch information
jesultra committed Nov 12, 2024
1 parent 60ef99e commit bb7b328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sw/host/tests/chip/spi_device/src/spi_host_config_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn spi_host_config_test(
let output = &mut [0x7; SAMPLES];
output[1] = 0x0f; // A rising edge on the D1 to indicate when the sampling started, which is helpfull when debugging.
output[output.len() - 2] = 0x0f; // A rising edge on the D1 to indicate when the sampling finished, which is helpfull when debugging.
let mut waveform = [BitbangEntry::Both(output, &mut samples)];
let waveform = Box::new([BitbangEntry::Both(output, &mut samples)]);

UartConsole::wait_for(
&*uart,
Expand Down Expand Up @@ -91,7 +91,7 @@ fn spi_host_config_test(
.map(Rc::borrow)
.collect::<Vec<&dyn GpioPin>>(),
Duration::from_micros(10),
&mut waveform,
waveform,
)?;

let mut decoder = test_utils::bitbanging::spi::decoder::Decoder::<
Expand Down

0 comments on commit bb7b328

Please sign in to comment.