Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/extensions-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:

jobs:
c-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
defaults:
run:
working-directory: libsql-sqlite3
Expand All @@ -41,7 +41,7 @@ jobs:
make test

rs-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
defaults:
run:
working-directory: libsql-sqlite3
Expand All @@ -61,7 +61,7 @@ jobs:
cargo test --features=loadable_extension

extensions-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Extensions Tests

steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/golang-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
jobs:
golang-bindings:

runs-on: ubuntu-latest
runs-on: ubuntu-24.04

services:
sqld:
Expand All @@ -37,7 +37,9 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '>=1.21'
# 1.27.4 rejects the LTO section in the static lib built above (".llvmbc" in
# #cgo LDFLAGS); 1.27.3 is the last version that builds go-libsql.
go-version: '1.27.3'
- name: get TCL
run: sudo apt-get install -y tcl8.6-dev

Expand Down
18 changes: 13 additions & 5 deletions libsql-server/tests/cluster/schema_dbs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,26 @@ fn schema_migration_basics() {
.await
.unwrap();

assert_eq!(
conn.query("select count(*) from test", ())
// The replica applies the delegated write asynchronously and the
// client does not give read-your-writes yet, so poll until it lands.
let mut count = 0;
for _ in 0..100 {
count = conn
.query("select count(*) from test", ())
.await
.unwrap()
.next()
.await
.unwrap()
.unwrap()
.get::<u64>(0)
.unwrap(),
2
);
.unwrap();
if count == 2 {
break;
}
tokio::time::sleep(std::time::Duration::from_millis(100)).await;
}
assert_eq!(count, 2);
assert_eq!(
conn.query("select count(*) from test2", ())
.await
Expand Down
Loading