Skip to content

Commit

Permalink
test: fixes from BPS changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Donovan Dall committed Jul 3, 2024
1 parent ee03d75 commit 2b675a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion bin/operator/src/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,13 @@ mod tests {

use near_light_client_primitives::config::BaseConfig;
use near_light_client_rpc::TransactionOrReceiptId;
use near_light_clientx::config::{Config, Testnet};
use test_utils::fixture;

use super::*;
use crate::succinct::tests::mocks;

const VERIFY_AMT: usize = 64;
const VERIFY_AMT: usize = Testnet::BPS;

async fn manager() -> Engine {
let client = mocks().await;
Expand Down Expand Up @@ -432,6 +433,7 @@ mod tests {
let (tx, w) = m.proving_queue.pop().unwrap();
// Make empty batch, since theres not enough to fill
let batch = m.make_batch();
println!("batch {:?}", batch);
assert!(batch.is_none());

// Put the tx we took back
Expand Down
2 changes: 1 addition & 1 deletion crates/primitives/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ mod tests {
use super::*;

#[derive(Debug, Deserialize, Clone)]
struct StubConfig;
struct StubConfig {}
impl Configurable for StubConfig {}

#[test]
Expand Down
6 changes: 3 additions & 3 deletions crates/protocol/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ mod tests {
&approval_message.unwrap(),
);

assert_eq!((total, approved), (440511369730158962073902098744970, 0));
assert_eq!((total, approved), (512915271547861520119028536348929, 0));
}

#[test]
Expand All @@ -491,8 +491,8 @@ mod tests {
assert_eq!(
(total, approved),
(
440511369730158962073902098744970,
296239000750863364078617965755968
512915271547861520119028536348929,
345140782903867823005444871054881
)
);

Expand Down

0 comments on commit 2b675a3

Please sign in to comment.