Skip to content

Commit

Permalink
add e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Jul 2, 2024
1 parent bdffc65 commit f45f741
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions e2e_test/ddl/drop/drop_creating_mv.slt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
statement ok
create table t(v1 int);

statement ok
insert into t select * from generate_series(1, 10000);

statement ok
flush;

statement ok
set streaming_rate_limit=1;

# Test drop foreground mv
skipif madsim
system ok
risedev psql -c 'create materialized view m1 as select * from t;' &

skipif madsim
sleep 5s

skipif madsim
statement ok
drop materialized view m1;

# Test drop background mv
statement ok
set background_ddl=true;

skipif madsim
statement ok
create materialized view m1 as select * from t;

skipif madsim
sleep 5s

skipif madsim
statement ok
drop materialized view m1;

statement ok
drop table t;

0 comments on commit f45f741

Please sign in to comment.