Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Add DROP EXTENSION to test
Browse files Browse the repository at this point in the history
Before timescaledb 2.6.1 it was not possible to drop the extension. Now
that we've bumped to 2.6.1 we can add a test case.

Fixes #95
  • Loading branch information
JamesGuthrie authored and jgpruitt committed Apr 13, 2022
1 parent a31427d commit aabcb65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion e2e/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ use testcontainers::clients;
mod common;

#[test]
fn create_promscale_extension() {
fn create_drop_promscale_extension() {
let _ = pretty_env_logger::try_init();

let docker = clients::Cli::default();
let node = run_postgres(&docker);

let mut client = common::connect(&node);
let result = client.simple_query("CREATE EXTENSION promscale;").unwrap();
assert_eq!(result.len(), 1);

let result = client.simple_query("DROP EXTENSION promscale;").unwrap();

assert_eq!(result.len(), 1);
}

0 comments on commit aabcb65

Please sign in to comment.