🧪 add TimeTypedef test #2239

Closed
CyJaySong wants to merge 1 commits from master into master
Contributor

test for #2057

test for #2057
CyJaySong added 1 commit 2023-03-22 11:32:07 +00:00
🧪 add TimeTypedef test
Some checks failed
continuous-integration/drone/pr Build is failing
263be7ad23
Author
Contributor

@lunny 这CI不过,跟我没关系吧,我直接fork master 分支加的测试代码呀

@lunny 这CI不过,跟我没关系吧,我直接fork master 分支加的测试代码呀
Owner
=== CONT  TestTimeTypedef

    time_test.go:665: 

        	Error Trace:	time_test.go:665

        	Error:      	Received unexpected error:

        	            	cannot convert time.Date(2023, time.March, 22, 11, 48, 34, 0, time.UTC) as bytes

        	Test:       	TestTimeTypedef

    time_test.go:667: 

        	Error Trace:	time_test.go:667

        	Error:      	Not equal: 

        	            	expected: "2023-03-22 11:48:34.124661"

        	            	actual  : "0001-01-01 00:00:00.000000"

        	            	

        	            	Diff:

        	            	--- Expected

        	            	+++ Actual

        	            	@@ -1 +1 @@

        	            	-2023-03-22 11:48:34.124661

        	            	+0001-01-01 00:00:00.000000

        	Test:       	TestTimeTypedef

--- FAIL: TestTimeTypedef (0.02s)
``` === CONT TestTimeTypedef time_test.go:665: Error Trace: time_test.go:665 Error: Received unexpected error: cannot convert time.Date(2023, time.March, 22, 11, 48, 34, 0, time.UTC) as bytes Test: TestTimeTypedef time_test.go:667: Error Trace: time_test.go:667 Error: Not equal: expected: "2023-03-22 11:48:34.124661" actual : "0001-01-01 00:00:00.000000" Diff: --- Expected +++ Actual @@ -1 +1 @@ -2023-03-22 11:48:34.124661 +0001-01-01 00:00:00.000000 Test: TestTimeTypedef --- FAIL: TestTimeTypedef (0.02s) ```
Author
Contributor

@lunny 您不是要我提交测试code嘛,这个就是呀,因为不支持基于Time的定义类型,反序列化也没走FromDB,直接报错了

@lunny 您不是要我提交测试code嘛,这个就是呀,因为不支持基于Time的定义类型,反序列化也没走FromDB,直接报错了
CyJaySong closed this pull request 2023-07-04 06:41:21 +00:00
Some checks failed
continuous-integration/drone/pr Build is failing

Pull request closed

Sign in to join this conversation.
No description provided.