<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anton0825</author_name>
  <author_url>https://blog.hatena.ne.jp/anton0825/</author_url>
  <blog_title>日々精進</blog_title>
  <blog_url>https://anton0825.hatenablog.com/</blog_url>
  <categories>
    <anon>IT</anon>
    <anon>node</anon>
  </categories>
  <description>非同期メソッドのテスト方法についての記事にちょっと面白そうなことが書いてあった。 Make Your Tests Deterministic - How To Node - NodeJS 内容は以下。 非同期なメソッドを複数回呼び出しているメソッドのテストは難しい。 その理由は非同期なメソッドは呼んだ順番と結果が返ってくる順番が異なる場合があるため。しかもその順番は実行するたびに変わる可能性がある。 同じテストが失敗したり成功したりするのでテストしづらい。 テストコード内で結果が返ってくる順番を定義できれば、いろんなパターン（呼び出し順が１，２，３・・・で返ってくる順番が２，３，１の場合、３，…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanton0825.hatenablog.com%2Fentry%2F20120910%2F1347264737&quot; title=&quot;非同期メソッドのテストとpredictableNextTick - 日々精進&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-09-10 17:12:17</published>
  <title>非同期メソッドのテストとpredictableNextTick</title>
  <type>rich</type>
  <url>https://anton0825.hatenablog.com/entry/20120910/1347264737</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
