|
12 | 12 | // See the License for the specific language governing permissions and
|
13 | 13 | // limitations under the License.
|
14 | 14 |
|
| 15 | +use std::sync::Arc; |
| 16 | + |
15 | 17 | use common_base::base::tokio;
|
16 | 18 | use common_exception::Result;
|
17 | 19 | use common_meta_types::StageType;
|
@@ -50,7 +52,8 @@ async fn test_parse_stage_location_internal() -> Result<()> {
|
50 | 52 | ];
|
51 | 53 |
|
52 | 54 | 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?; |
54 | 57 |
|
55 | 58 | assert_eq!(stage, stage_info, "{}", name);
|
56 | 59 | assert_eq!(path, expected, "{}", name);
|
@@ -83,7 +86,8 @@ async fn test_parse_stage_location_external() -> Result<()> {
|
83 | 86 | ];
|
84 | 87 |
|
85 | 88 | 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?; |
87 | 91 |
|
88 | 92 | assert_eq!(stage, stage_info, "{}", name);
|
89 | 93 | assert_eq!(path, expected, "{}", name);
|
|
0 commit comments