Skip to content

Commit cb90e38

Browse files
chore: fix tests (#1867)
1 parent 4f68927 commit cb90e38

File tree

2 files changed

+2
-2
lines changed
  • crates

2 files changed

+2
-2
lines changed

crates/chat-cli/src/database/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ mod tests {
515515

516516
// assert migration count is correct
517517
let max_migration = max_migration_version(&&*db.pool.get().unwrap());
518-
assert_eq!(max_migration, Some(MIGRATIONS.len() as i64));
518+
assert_eq!(max_migration, Some(MIGRATIONS.len() as i64 - 1));
519519
}
520520

521521
#[test]

crates/fig_settings/src/sqlite/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ mod tests {
343343

344344
// assert migration count is correct
345345
let max_migration = max_migration_version(&&*db.pool.get().unwrap());
346-
assert_eq!(max_migration, Some(MIGRATIONS.len() as i64));
346+
assert_eq!(max_migration, Some(MIGRATIONS.len() as i64 - 1));
347347
}
348348

349349
#[test]

0 commit comments

Comments
 (0)