From 94073c6c288278a2643631c4003ab6722a9e78e3 Mon Sep 17 00:00:00 2001 From: Wonchan Lee Date: Fri, 26 Feb 2021 16:21:54 -0800 Subject: [PATCH] Modify tests to use the updated scalar factory correctly --- cpp/tests/scalar/factories_test.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cpp/tests/scalar/factories_test.cpp b/cpp/tests/scalar/factories_test.cpp index c91fb6b3b5e..fd0a92a0168 100644 --- a/cpp/tests/scalar/factories_test.cpp +++ b/cpp/tests/scalar/factories_test.cpp @@ -89,7 +89,7 @@ TYPED_TEST(TimestampScalarFactory, TypeCast) } template -struct DefaultScalarFactory : public cudf::test::BaseFixture { +struct DefaultScalarFactory : public ScalarFactoryTest { static constexpr auto factory = cudf::make_default_constructed_scalar; }; @@ -98,7 +98,8 @@ TYPED_TEST_CASE(DefaultScalarFactory, MixedTypes); TYPED_TEST(DefaultScalarFactory, FactoryDefault) { - std::unique_ptr s = this->factory(cudf::data_type{cudf::type_to_id()}); + std::unique_ptr s = + this->factory(cudf::data_type{cudf::type_to_id()}, this->stream(), this->mr()); EXPECT_EQ(s->type(), cudf::data_type{cudf::type_to_id()}); EXPECT_FALSE(s->is_valid()); @@ -106,7 +107,8 @@ TYPED_TEST(DefaultScalarFactory, FactoryDefault) TYPED_TEST(DefaultScalarFactory, TypeCast) { - std::unique_ptr s = this->factory(cudf::data_type{cudf::type_to_id()}); + std::unique_ptr s = + this->factory(cudf::data_type{cudf::type_to_id()}, this->stream(), this->mr()); auto numeric_s = static_cast*>(s.get());