Skip to content

Instantly share code, notes, and snippets.

@tylerflint
Created September 6, 2011 22:12
Show Gist options
  • Select an option

  • Save tylerflint/1199151 to your computer and use it in GitHub Desktop.

Select an option

Save tylerflint/1199151 to your computer and use it in GitHub Desktop.
eunit ets functionality
-module(baker_shard_tests).
-include_lib("eunit/include/eunit.hrl").
-include_lib("baker.hrl").
baker_shard_test_() ->
{
setup,
fun() ->
ets:new(services, [named_table, set, public, {keypos, 2}]),
ok
end,
fun(_) ->
ok
end,
[]
}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment