Skip to content

Commit 5a9fda3

Browse files
committed
Fix test
Signed-off-by: Xuanwo <github@xuanwo.io>
1 parent 4c9f0d6 commit 5a9fda3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/query/service/tests/it/sql/statements/statement_common.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
use std::sync::Arc;
16+
1517
use common_base::base::tokio;
1618
use common_exception::Result;
1719
use common_meta_types::StageType;
@@ -50,7 +52,8 @@ async fn test_parse_stage_location_internal() -> Result<()> {
5052
];
5153

5254
for (name, input, expected) in cases {
53-
let (stage, path) = parse_stage_location(&ctx, input).await?;
55+
let table_context: Arc<dyn TableContext> = ctx.clone();
56+
let (stage, path) = parse_stage_location(&table_context, input).await?;
5457

5558
assert_eq!(stage, stage_info, "{}", name);
5659
assert_eq!(path, expected, "{}", name);
@@ -83,7 +86,8 @@ async fn test_parse_stage_location_external() -> Result<()> {
8386
];
8487

8588
for (name, input, expected) in cases {
86-
let (stage, path) = parse_stage_location(&ctx, input).await?;
89+
let table_context: Arc<dyn TableContext> = ctx.clone();
90+
let (stage, path) = parse_stage_location(&table_context, input).await?;
8791

8892
assert_eq!(stage, stage_info, "{}", name);
8993
assert_eq!(path, expected, "{}", name);

0 commit comments

Comments
 (0)