tweak expected error message for ts_A_create_table_not_null_pk_fields

This commit is contained in:
Andrei Zavada 2015-11-29 02:29:36 +02:00
parent 6e158e6ee5
commit 2519da7300

View File

@ -25,13 +25,13 @@
-include_lib("eunit/include/eunit.hrl").
-export([
confirm/0
]).
confirm/0
]).
confirm() ->
ClusterType = single,
DDL = ts_util:get_ddl(not_null_primary_key_field_fail),
Expected = {ok, "Error validating table definition for bucket type GeoCheckin:\nAll fields in primary key must be not null\n"},
Expected = {ok, "Error validating table definition for bucket type GeoCheckin:\nPrimary key has 'null' fields (myseries)\n"},
Got = ts_util:create_bucket_type(ts_util:build_cluster(ClusterType), DDL),
?assertEqual(Expected, Got),
pass.