Skip to content

TEST: Add test for issue #655#828

Merged
jhpark816 merged 1 commit intonaver:developfrom
ing-eoking:tt
Mar 27, 2025
Merged

TEST: Add test for issue #655#828
jhpark816 merged 1 commit intonaver:developfrom
ing-eoking:tt

Conversation

@ing-eoking
Copy link
Copy Markdown
Collaborator

@ing-eoking ing-eoking commented Mar 25, 2025

🔗 Related Issue

⌨️ What I did

  • 관련 이슈에서 발생한 segfault 문제에 대한 unit test를 추가합니다.

@ing-eoking ing-eoking requested review from jhpark816 and namsic March 25, 2025 04:15
Copy link
Copy Markdown
Collaborator

@jhpark816 jhpark816 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 완료

Comment thread t/issue_arcus_655.t Outdated
sub is_zombie {
my $pid = shift;
my $proc_state = `ps -p $pid -o stat=`;
return $proc_state =~ /^Z/
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.13.1 버전에서 테스트가 원하는 대로 동작하나요?

Copy link
Copy Markdown
Collaborator Author

@ing-eoking ing-eoking Mar 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네. 원하는 데로 동작합니다.

1..2
not ok 1 - bop insert bkey 0 6 create 0 1742947050 10:datum0
#   Failed test 'bop insert bkey 0 6 create 0 1742947050 10:datum0'
#   at /Users/jam2in/Documents/GitHub/arcus-memcached/t/lib/MemcachedTest.pm line 133.
#          got: ''
#     expected: 'CREATED_STORED'
not ok 2 - bop get bkey 0:
#   Failed test 'bop get bkey 0:'
#   at /Users/jam2in/Documents/GitHub/arcus-memcached/t/lib/MemcachedTest.pm line 133.
#          got: ''
#     expected: 'NOT_FOUND'
# Looks like you failed 2 tests of 2.

Comment thread t/issue_arcus_655.t Outdated
mem_cmd_is($sock, $cmd, $val, $rst);

sleep(0.01);
ok(not is_zombie($server->{pid}));
Copy link
Copy Markdown
Collaborator

@jhpark816 jhpark816 Mar 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 방식 대신에 bop get 수행하면 되지 않나 생각됩니다.
결과는 NOT_FOUND이어야 하고요.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수정되었습니다.

./t/issue_68.t
./t/issue_70.t
./t/issue_arcus_151.t
./t/issue_arcus_655.t
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

655에 대한 이슈 link를 코멘트로 남겨주세요.
확인해 보고자 합니다.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#655 는 PR 입니다.

이슈는 jam2in/arcus-works#357 인데, naver/arucs-memcached의 이슈가 아니라서 655 PR으로 대체한 것이 아닌가 싶습니다.

Copy link
Copy Markdown
Collaborator

@jhpark816 jhpark816 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 완료

Comment thread t/issue_arcus_655.t Outdated
my $server = get_memcached($engine);
my $sock = $server->sock;

my $expire = time() - 1;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아래와 같이 주석을 달 수 있다면 주석을 추가하시죠.

my $expire = time() - 1; // immediate expiration

@jhpark816 jhpark816 merged commit 0d41e34 into naver:develop Mar 27, 2025
1 check passed
@ing-eoking ing-eoking deleted the tt branch March 27, 2025 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants