release: v2.1.4 isolated HTTP execute (ADR 0009)
Default execute/sse-live/stream to Supervisor worker pool; MR-01 gold; /_runtime/*; bump CLI/wasm/ext to 2.1.4. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
58e13ee6d3
commit
3cabe53da2
56 files changed
+4957
-304
No files matched your search
@@ -100,6 +100,24 @@ func TestInitInsertSelectGet(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestUpdateIfCAS(t *testing.T) {
|
||||
url := setupArticles(t)
|
||||
ok, err := db.UpdateIf(url, "articles", "1", map[string]any{"title": "CAS"}, "title", "Alpha")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if ok["updated"] != float64(1) {
|
||||
t.Fatalf("cas hit=%v", ok)
|
||||
}
|
||||
miss, err := db.UpdateIf(url, "articles", "1", map[string]any{"title": "Nope"}, "title", "Alpha")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if miss["updated"] != float64(0) {
|
||||
t.Fatalf("cas miss should be 0, got %v", miss)
|
||||
}
|
||||
}
|
||||
|
||||
func TestUpdateDelete(t *testing.T) {
|
||||
url := setupArticles(t)
|
||||
|
||||
|
||||
Reference in new issue
Block a user