File tree Expand file tree Collapse file tree 4 files changed +22
-226
lines changed
src/com/moclojer/components
test/com/moclojer/components Expand file tree Collapse file tree 4 files changed +22
-226
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1111(defn execute!
1212 [commands]
1313 (flow " makes database execution"
14- [database (state-flow.api/get-state :database )]
15- (-> database
16- (database/execute commands)
17- state-flow.api/return)))
14+ [database (state-flow.api/get-state :database )]
15+ (-> database
16+ (database/execute commands {} )
17+ state-flow.api/return)))
1818
1919(defn- create-and-start-system
2020 []
2929 :fail-fast? true }
3030
3131 (flow " creates a table and insert a row and retreive"
32- (execute! [" CREATE TABLE test (id SERIAL PRIMARY KEY, name VARCHAR(255))" ])
32+ (execute! [" CREATE TABLE test (id SERIAL PRIMARY KEY, name VARCHAR(255))" ])
3333
34- (execute! [" INSERT INTO test (name) VALUES ('test')" ])
34+ (execute! [" INSERT INTO test (name) VALUES ('test')" ])
3535
36- (match? [#:test {:name " test"
37- :id 1 }]
38- (execute! [" SELECT * FROM test" ]))))
36+ (match? [#:test {:name " test"
37+ :id 1 }]
38+ (execute! [" SELECT * FROM test" ]))))
Original file line number Diff line number Diff line change 2121 :cleanup utils/stop-system!
2222 :fail-fast? true }
2323 (flow
24- " should create a file on storage and read it back"
25- [storage (get-state :storage )]
26- (state/invoke #(storage/create-bucket! storage " test" ))
27- (state/invoke #(do
24+ " should create a file on storage and read it back"
25+ [storage (get-state :storage )]
26+ (state/invoke #(storage/create-bucket! storage " test" ))
27+ (state/invoke #(do
2828 ; ; wait for bucket creation
29- (Thread/sleep 1000 )
30- (storage/upload! storage " test" " test.txt" " hello world!" )))
31- (match? " hello world!"
32- (state/return
33- (utils/exec-with-timeout
34- #(some-> (storage/get-file storage " test" " test.txt" )
35- io/reader
36- slurp)
37- 10000 500 )))))
29+ (Thread/sleep 1000 )
30+ (storage/upload! storage " test" " test.txt" " hello world!" {} )))
31+ (match? " hello world!"
32+ (state/return
33+ (utils/exec-with-timeout
34+ #(some-> (storage/get-file storage " test" " test.txt" )
35+ io/reader
36+ slurp)
37+ 10000 500 )))))
You can’t perform that action at this time.
0 commit comments