File tree Expand file tree Collapse file tree 2 files changed +12
-18
lines changed Expand file tree Collapse file tree 2 files changed +12
-18
lines changed Original file line number Diff line number Diff line change 11version : ' 2'
22services :
33 clickhouse_db :
4- image : bitnami/clickhouse:latest
5- logging :
6- driver : " json-file"
7- options :
8- max-size : " 100m"
4+ image : clickhouse/clickhouse-server:latest
95 environment :
10- - ALLOW_EMPTY_PASSWORD=no
11- - CLICKHOUSE_ADMIN_PASSWORD=admin
12- - CLICKHOUSE_ADMIN_USER=default
13- - CLICKHOUSE_HTTP_PORT=9123
14- networks :
15- default :
6+ - CLICKHOUSE_USER=default
7+ - CLICKHOUSE_PASSWORD=admin
8+ - CLICKHOUSE_DB=default
169 ports :
17- - 9123:9123
10+ - " 9123:8123"
11+ - " 9000:9000"
1812 volumes :
19- - ./tests_override.xml:/bitnami /clickhouse/etc/conf .d/override.xml:ro
13+ - ./tests_override.xml:/etc /clickhouse-server/config .d/override.xml:ro
2014 healthcheck :
21- test : ["CMD", "true "]
15+ test : ["CMD-SHELL ", "clickhouse-client --query 'SELECT 1;' || exit 1 "]
2216 interval : 5s
23- timeout : 1s
24- retries : 1
25- start_period : 15s
17+ timeout : 4s
18+ retries : 10
19+ start_period : 20s
2620
2721 mysql_db :
2822 image : mysql:8.4.3
Original file line number Diff line number Diff line change @@ -1104,7 +1104,7 @@ def test_different_types_2():
11041104
11051105 value = ch .select (TEST_TABLE_NAME , 'test1=True' )[0 ]['test5' ]
11061106 assert isinstance (value , datetime .datetime )
1107- assert str (value ) == '2023-08-15 14:40:00+00:00 '
1107+ assert str (value ) == '2023-08-15 14:40:00'
11081108
11091109 assert ch .select (TEST_TABLE_NAME , 'test1=True' )[0 ]['test6' ] == uuid .UUID ('110e6103-e39b-51d4-a716-826755413099' )
11101110
You can’t perform that action at this time.
0 commit comments